public class Work {
    public int one = 1;
    public int three = 3;
    public int two = 2;

    public Work() {
        this(10, 20, 30);//调用本类当中其他的构造方法
        System.out.println("不带参数的的构造方法");
    }

    public Work(int one, int two, int three) {
        System.out.println("带参数的构造方法");
        this.one = one;
        this.two = two;
        this.three = three;
    }

    public void printWork() {
        System.out.println(one + "-" + two + "-" + three);
    }

    public static void main(String[] args) {
        Work work = new Work(3, 6, 9);
        work.printWork();
    }
}

